package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class NanDongTtpInfoRowMapper implements RowMapper<NanDongTtpInfo> {
    @Override
    public NanDongTtpInfo mapRow(ResultSet resultSet, int i) throws SQLException {
        NanDongTtpInfo nd = new NanDongTtpInfo();
        nd.setId(resultSet.getInt("id"));
        nd.setAddress(resultSet.getString("address"));
        nd.setName_tel(resultSet.getString("name_tel"));
        nd.setUse_tel(resultSet.getString("use_tel"));
        nd.setLicense(resultSet.getString("license"));
        nd.setType(resultSet.getString("type"));
        nd.setHouse_situation(resultSet.getString("house_situation"));
        nd.setArea(resultSet.getString("area"));
        nd.setZg_situatioin(resultSet.getString("zg_situatioin"));
        nd.setJw(resultSet.getString("jw"));
        nd.setLng(resultSet.getString("lng"));
        nd.setLat(resultSet.getString("lat"));
        return nd;
    }
}
